div {
    display: flex;
    color: red;
    span {
        display: grid;
        font-size: 14px;
        animation-duration: 0.3s;
    }
}

.class-a {
    border: 1px solid darkcyan;
}

.class-b {
    @extend .class-a;
    background-color: chocolate;
}